<?php if(!empty($content)) : ?>
<?php
  foreach($content as $model) {
    $class_a = ($model['class'] == 'active') ? 'product_list_1_2' : 'product_list_1';
    $class_div = ($model['class'] == 'active') ? 'product_list_1_title_2' : 'product_list_1_title';
    print l('<img src="'.$model['image'].'" alt="" style = "height:120px; width:168px;"/><div class="'.$class_div.'">'.$model['title'].'</div>',
      'node/'.$model['nid'], array('html' => true,'attributes' => array('class' => array($class_a)))
    );
  }
  ?>
<div style = "clear:both;"></div>
<?php endif; ?>